/*
 * QueryDailyQuotationResponse.java
 * business
 *
 * Created by ChenTao on 2017/6/5.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.response;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.Goods;
import com.yidiandao.business.data.bean.ShareEntity;

import java.util.List;

/**
 * 每日行情
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017-06-05 18:07
 */
public class QueryDailyQuotationResponse extends PagerResponse {

    @SerializedName("data")
    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {

        @SerializedName("brand_list")
        private List<BrandQuotation> brandQuotations;

        @SerializedName("share_info")
        private ShareEntity shareEntity;

        public ShareEntity getShareEntity() {
            return shareEntity;
        }

        public void setShareEntity(ShareEntity shareEntity) {
            this.shareEntity = shareEntity;
        }

        public List<BrandQuotation> getBrandQuotations() {
            return brandQuotations;
        }

        public void setBrandQuotations(List<BrandQuotation> brandQuotations) {
            this.brandQuotations = brandQuotations;
        }
    }

    public static class BrandQuotation {

        @SerializedName("brand_id")
        private String brandId;

        @SerializedName("brand_name")
        private String brandName;

        @SerializedName("goods_list")
        private List<Goods> goodsList;

        public String getBrandId() {
            return brandId;
        }

        public void setBrandId(String brandId) {
            this.brandId = brandId;
        }

        public String getBrandName() {
            return brandName;
        }

        public void setBrandName(String brandName) {
            this.brandName = brandName;
        }

        public List<Goods> getGoodsList() {
            return goodsList;
        }

        public void setGoodsList(List<Goods> goodsList) {
            this.goodsList = goodsList;
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;

            BrandQuotation that = (BrandQuotation) o;

            return brandId != null ? brandId.equals(that.brandId) : that.brandId == null;

        }

        @Override
        public int hashCode() {
            return brandId != null ? brandId.hashCode() : 0;
        }
    }

}
